import request from "@/utils/request";
/**
 * 获取企业列表
 * @param {Page, pageSize} params
 * @returns
 */
export function getEnterpriseListAPI(params) {
  return request({
    url: "/park/enterprise",

    params,
  });
}
/**
 * 获取行业列表
 * @returns
 */
export function getIndustryListAPI() {
  return request({
    url: "/park/industry",
  });
}

// park / enterprise;
/**
 * 添加企业
 * @param {Page, pageSize} params
 * @returns
 */
export function createRentAPI(data) {
  return request.post("/park/enterprise", data);
}
/**
 * 获取合同详情
 * @param {*} id
 * @returns
 */
export function getEnterpriseDetailAPI(id) {
  return request({
    url: `/park/enterprise/${id}`
  })
}
/**
 * 更新企业
 * @param {*} data
 * @returns
 */
export function updateExterpriseAPI(data) {
  return request({
    url: '/park/enterprise',
    method: 'PUT',
    data
  })
}
/**
 * 删除企业
 * @param {*} id
 * @returns
 */
export function delExterpriseAPI(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: 'DELETE'
  })
}
